home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8"?> <html><head><title>Exp-Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03080201"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css"> p.P1{ } p.P2{ } span.T1{ font-weight:bold;} </style></head><body> <help:to-be-embedded Eid="exp" xmlns:help="http://openoffice.org/2000/help"> <p class="Head1"><help:link Id="66570">Exp-Function [Runtime]</help:link></p> <p class="Paragraph">Returns the base of the natural logarithm (e = 2.718282) raised to a power.</p> </help:to-be-embedded> <p class="Paragraph"><span class="T1">Syntax</span>:</p> <p class="Paragraph">Exp (Number) <help:key-word value="Exp" tag="kw66570_1" xmlns:help="http://openoffice.org/2000/help"/></p> <p class="Paragraph"><span class="T1">Return value</span>:</p> <p class="Paragraph">Double</p> <p class="Paragraph"><span class="T1">Parameter</span>:</p> <p class="Paragraph">Number: Any numeric expression that specifies the power by which to raise e (the base of natural logarithms). The power must be for bothsingle-precision numbers <= 88.02969 and double-precision numbers <= 709.782712893, since <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic returns an Overflow error for numbers exceeding these values.</p> <p class="P2">Example:</p> <p class="PropText">Sub ExampleLogExp</p> <p class="PropText">Dim dValue as Double</p> <p class="PropText">const b1=12.345e12</p> <p class="PropText">const b2=1.345e34</p> <p class="PropText">dValue=Exp( Log(b1)+Log(b2) )</p> <p class="PropText">MsgBox "" & dValue & chr(13) & (b1*b2) ,0,"Multiplication by logarithm"</p> <p class="PropText">end sub</p> <p class="PropText"/> </body></html>